
package com.epam.android.training.task.rss;

import java.util.Date;

/**
 * @author pavel_busko
 * 
 * This class reflects RSS item entity.
 */
public class RssItem {

    private String title;

    private String description;

    private String link;

    private Date date;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    /*
     * Returns title to enable filtering by array adapter.
     */
    @Override
    public String toString() {
        return title;
    }
}
